import request from '@/utils/request'

export function save(video) {
  return request({
    url: '/admin/edu/video/save',
    method: 'post',
    data: video
  })
}

export function getById(id) {
  return request({
    url: `/admin/edu/video/get/${id}`,
    method: 'get'
  })
}

export function updateById(video) {
  return request({
    url: '/admin/edu/video/update',
    method: 'put',
    data: video
  })
}

export function removeVideoById(id) {
  return request({
    url: `/admin/edu/video/delete/${id}`,
    method: 'delete'
  })
}
